﻿@page "/"

@using Puppy.Scheduler.Jobs

<h1>Hello, world!</h1>

Welcome to your new app.

<Label>Hello Blazorise</Label>

<Label>任务总数</Label>

<Label>当前运行实例数</Label>

<Label>近期失败任务数</Label>

<Label>集群机器数</Label>

<DataGrid TItem="ClusterStatistics" Data="@clusterStatistics">

</DataGrid>

@code{
    List<ClusterStatistics> clusterStatistics;

    protected override Task OnInitializedAsync()
    {
        clusterStatistics = new List<ClusterStatistics>
        {
            new ClusterStatistics{ Address = "127.0.0.1:2000", CpuUsage = 1.2F, MemoryUsage = 34, DiskUsage = 39 }
        };
        return base.OnInitializedAsync();
    }
}